const Sequelize = require('sequelize');
const baseModel = require('../baseModel');

class org_worksModel extends baseModel{
  constructor(){
    super('org_works',{
      // 机构ID
      org:{
        type: Sequelize.INTEGER,
        allowNull: false,
      },
      work_id:{
        type: Sequelize.INTEGER,
        allowNull: false
      }
    });
    this.model = super.getModel();
    this.model.sync();
  }
}

module.exports = new org_worksModel();
